home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / apidev / sc3x04.exe / GETLOCK.DOC < prev    next >
Text File  |  1993-08-02  |  2KB  |  43 lines

  1.                    Get Physical Record Locks By File
  2.  
  3.     This call returns a list of all physical records that are locked in
  4.     a file.
  5.  
  6.     Function 23 (17h)
  7.   
  8.     Request Buffer
  9.  
  10.         Offset   Request Packet Contents        Bytes    Remarks
  11.         ------   ---------------------------    -----    -------
  12.         0        Sub-function Structure Len     2        Length
  13.         2        238 (EEh)                      1
  14.         3        Data Stream Number             1        Name Space
  15.         5        Volume Number                  1
  16.         6        Directory Entry                4
  17.         7        Next Request                   2
  18.  
  19.     Reply Buffer
  20.  
  21.         Offset   Reply Packet Contents          Bytes    Remarks
  22.         ------   ---------------------------    -----    -------
  23.         0        Next Request Record            2
  24.         2        Number Of Locks                2
  25.  
  26.         The following 7 fields will be repeated for each lock found:
  27.  
  28.         4        Logged Count 1                 2
  29.         6        Shareable Lock Count 1         2
  30.         8        Record Start 1                 4
  31.         12       Record End 1                   4
  32.         16       Logical Connection Number 1    2
  33.         18       Task Number 1                  2
  34.         20       Lock Type 1                    1
  35.  
  36.         21       Logged Count 2                 2
  37.         23       Shareable Lock Count 2         2
  38.         25       Record Start 2                 4
  39.         .        .                              .
  40.         .        .                              .
  41.         .        .                              .
  42.         etc.
  43.